package com.qf.entity;

/**
 * @author 孙亚梅
 * @version V1.0
 * @Project bookApp-homework
 * @Package com.qf.entity
 * @Description:
 * @Date 2022/5/14 16:10
 */
public class Book {
    private  Integer id;
    private  String name;
    private double price; //price 价格
    private  String description;//description 描写
    private  String author;//author 作者
    private  String publisher;//publisher  出版商

    public Book() {
    }

    public Book(Integer id, String name, double price, String description, String author, String publisher) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.description = description;
        this.author = author;
        this.publisher = publisher;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", description='" + description + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                '}';
    }
}
